package com.learn.rabbitmq.factory;


public class EventFactory {

	public static Event buildOrder() {
		Event event = new Event();
		event.setType(EventType.ORDER);
		event.setMsg("订单已完成,请发货");
		return event;
	}
	
	
	public static Event buildPayment() {
		Event event = new Event();
		event.setType(EventType.PAYMENT);
		event.setMsg("支付已完成,请发货");
		return event;
	}
	
}
